<?php
namespace frontend\models\question;

use Yii;
use yii\db\ActiveRecord;

class Answer extends ActiveRecord
{
	/**
	 * return @inheritdoc 相关表连接
	 */
	public static function tableName()
	{
		return "edu_answer";
	}
	/**
     * @inheritdoc 添加评论
     */
    public function ReplyAdd($str)
    {
        return $this->find()
                ->select("find,replacement")
                ->from("edu_Illegal")
                ->where("instr('$str',find)")
                ->asarray()
                ->all();
    }
}
?>